import request from '@/utils/request'

// 查询分佣机制管理列表
export function listCommissionrule(query) {
  return request({
    url: '/commissionrule/commissionrule/list',
    method: 'get',
    params: query
  })
}

// 查询分佣机制管理详细
export function getCommissionrule(id) {
  return request({
    url: '/commissionrule/commissionrule/' + id,
    method: 'get'
  })
}

// 新增分佣机制管理
export function addCommissionrule(data) {
  return request({
    url: '/commissionrule/commissionrule',
    method: 'post',
    data: data
  })
}

// 修改分佣机制管理
export function updateCommissionrule(data) {
  return request({
    url: '/commissionrule/commissionrule',
    method: 'put',
    data: data
  })
}

// 删除分佣机制管理
export function delCommissionrule(id) {
  return request({
    url: '/commissionrule/commissionrule/' + id,
    method: 'delete'
  })
}

// 导出分佣机制管理
export function exportCommissionrule(query) {
  return request({
    url: '/commissionrule/commissionrule/export',
    method: 'get',
    params: query
  })
}